<?php

require "../vendor/predis/predis/src/Autoloader.php";
Predis\Autoloader::register();

$client = new Predis\Client([
    'scheme' => 'tcp',
    'host'   => '106.13.63.203',
    'port'   => 6379,
]);


$client->subscribe(array('msg'),'callback');

function callback($instance, $channelName, $message) {
    
    echo $channelName, "==>", $message,PHP_EOL;
    //echo $message;

}






?>